home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 6-Apple⁄DEC Alliance / Solutions & Networking Guide / Macintosh Networking Guide / Macintosh Networking Guide / background_14812.txt < prev    next >
Text File  |  1990-04-17  |  8KB  |  390 lines

  1. -- background: 14812 from stack: in
  2. -- bmap block id: 14999
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: General Text
  6. ----- HyperTalk script -----
  7. on extractMac
  8.   global sol,env,holder
  9.   --environments,envnum,solutions,solnum,holder
  10.   get card field (env && sol) of card "Mac Grid"
  11.   put empty into holder
  12.   repeat with i = 1 to the number of lines of it
  13.     if item 1 of line i of it <> empty then
  14.       put line i of it & return after holder
  15.     end if
  16.   end repeat
  17. end extractMac
  18.  
  19. on extractHost
  20.   global sol,env,holder
  21.   get card field (env && sol) of card "Mac Grid"
  22.   put empty into holder
  23.   repeat with i = 1 to the number of lines of it
  24.     if item 2 of line i of it <> empty then
  25.       put line i of it & return after holder
  26.     end if
  27.   end repeat
  28. end extractHost
  29.  
  30. on parse
  31.   global holder,NH
  32.   put empty into NH
  33.   repeat with i = 1 to the number of lines of holder
  34.     put item 3 of line i of holder into dotnames
  35.     repeat
  36.       put offset("‚Ä¢",dotnames) into num
  37.       if num is empty or num is 0 then exit repeat
  38.       put char 1 to (num - 1) of dotnames & return after NH
  39.       delete char 1 to num of dotnames
  40.     end repeat
  41.   end repeat
  42. end parse
  43.  
  44. on closeCard
  45.   pass closeCard
  46. end closeCard
  47.  
  48.  
  49. -- part 9 (field)
  50. -- low flags: 01
  51. -- high flags: 0002
  52. -- rect: left=172 top=307 right=339 bottom=340
  53. -- title width / last selected line: 0
  54. -- icon id / first selected line: 0 / 0
  55. -- text alignment: 1
  56. -- font id: 242
  57. -- text size: 12
  58. -- style flags: 0
  59. -- line height: 16
  60. -- part name: Tell
  61. ----- HyperTalk script -----
  62. on mouseLeave
  63.   put empty into fld "Tell"
  64. end mouseLeave
  65.  
  66. on mouseEnter
  67.   put "Message Field" & return & "displays help information" into fld "Tell"
  68. end mouseEnter
  69.  
  70.  
  71.  
  72.  
  73. -- part 13 (button)
  74. -- low flags: 00
  75. -- high flags: 2002
  76. -- rect: left=469 top=303 right=342 bottom=512
  77. -- title width / last selected line: 0
  78. -- icon id / first selected line: 9301 / 9301
  79. -- text alignment: 1
  80. -- font id: 0
  81. -- text size: 12
  82. -- style flags: 0
  83. -- line height: 16
  84. -- part name: GoBack
  85. ----- HyperTalk script -----
  86. on mouseUp
  87.   get short name of this card
  88.   if it is "Outliner" then clearF
  89.   set lockscreen to true
  90.   set cursor to busy
  91.   go back
  92.   unlock screen with visual effect wipe right
  93. end mouseUp
  94.  
  95. on mouseEnter
  96.   put "Go Back Button" & return & "click to go to prev card" into fld "Tell"
  97.   changeCurs 6069
  98. end mouseEnter
  99.  
  100. On mouseDown
  101.   global ButtonSND
  102.   play ButtonSND
  103. End mouseDown
  104.  
  105. on mouseLeave
  106.   put empty into fld "Tell"
  107.   changeCurs 69
  108. end mouseLeave
  109.  
  110.  
  111. -- part 20 (field)
  112. -- low flags: 80
  113. -- high flags: 2001
  114. -- rect: left=68 top=41 right=223 bottom=464
  115. -- title width / last selected line: 0
  116. -- icon id / first selected line: 0 / 0
  117. -- text alignment: 1
  118. -- font id: 242
  119. -- text size: 12
  120. -- style flags: 0
  121. -- line height: 16
  122. -- part name: Explainer
  123.  
  124.  
  125. -- part 23 (button)
  126. -- low flags: 00
  127. -- high flags: 2002
  128. -- rect: left=0 top=303 right=342 bottom=43
  129. -- title width / last selected line: 0
  130. -- icon id / first selected line: 10112 / 10112
  131. -- text alignment: 1
  132. -- font id: 0
  133. -- text size: 12
  134. -- style flags: 0
  135. -- line height: 16
  136. -- part name: EXIT
  137. ----- HyperTalk script -----
  138. on mouseEnter
  139.   changeCurs 6069
  140.   put "Exit Button" & return & "click to quit or go home" into fld "Tell"
  141. end mouseEnter
  142.  
  143. on mouseUp
  144.   set lockscreen to true
  145.   answer "Would you like to Quit, go Home, or Cancel" with "Quit" or "Home" or "Cancel"
  146.   unlock screen with dissolve
  147.   set lockscreen to true
  148.   if it is "Quit" then doMenu "Quit HyperCard"
  149.   if it is "Home" then
  150.     domenu Home
  151.   end if
  152.   unlock screen with dissolve
  153. end mouseUp
  154.  
  155. On mouseDown
  156.   global ButtonSND
  157.   play ButtonSND
  158. End mouseDown
  159.  
  160. on mouseLeave
  161.   put empty into fld "Tell"
  162.   changeCurs 69
  163. end mouseLeave
  164.  
  165.  
  166. -- part 24 (button)
  167. -- low flags: 00
  168. -- high flags: 2002
  169. -- rect: left=126 top=303 right=342 bottom=169
  170. -- title width / last selected line: 0
  171. -- icon id / first selected line: 1007 / 1007
  172. -- text alignment: 1
  173. -- font id: 0
  174. -- text size: 12
  175. -- style flags: 0
  176. -- line height: 16
  177. -- part name: Printer
  178. ----- HyperTalk script -----
  179. on mouseUp
  180.   set cursor to busy
  181.   print card
  182. end mouseUp
  183.  
  184. on mouseEnter
  185.   changeCurs 6069
  186.   put "Printer Button" & return & "click to print this image" into fld "Tell"
  187. end mouseEnter
  188.  
  189. On mouseDown
  190.   global ButtonSND
  191.   play ButtonSND
  192. End mouseDown
  193.  
  194. on mouseLeave
  195.   put empty into fld "Tell"
  196.   changeCurs 69
  197. end mouseLeave
  198.  
  199.  
  200. -- part 25 (button)
  201. -- low flags: 00
  202. -- high flags: 2002
  203. -- rect: left=343 top=303 right=342 bottom=386
  204. -- title width / last selected line: 0
  205. -- icon id / first selected line: 1409 / 1409
  206. -- text alignment: 1
  207. -- font id: 0
  208. -- text size: 12
  209. -- style flags: 0
  210. -- line height: 16
  211. -- part name: Outliner
  212. ----- HyperTalk script -----
  213. on mouseUp
  214.   global Mack,Host
  215.   push card
  216.   set cursor to busy
  217.   set the lockscreen to true
  218.   put true into Mack
  219.   put false into Host
  220.   go to cd "Outliner"
  221.   send mouseUp to cd btn "macSwitch"
  222.   unlock screen with dissolve
  223. end mouseUp
  224.  
  225. on mouseEnter
  226.   changeCurs 6069
  227.   put "Outliner Button" & return & "use outline navigation" into fld "Tell"
  228. end mouseEnter
  229.  
  230. On mouseDown
  231.   global ButtonSND
  232.   play ButtonSND
  233. End mouseDown
  234.  
  235. on mouseLeave
  236.   put empty into fld "Tell"
  237.   changeCurs 69
  238. end mouseLeave
  239.  
  240.  
  241.  
  242. -- part 26 (button)
  243. -- low flags: 00
  244. -- high flags: 2002
  245. -- rect: left=427 top=303 right=342 bottom=470
  246. -- title width / last selected line: 0
  247. -- icon id / first selected line: 30492 / 30492
  248. -- text alignment: 1
  249. -- font id: 0
  250. -- text size: 12
  251. -- style flags: 0
  252. -- line height: 16
  253. -- part name: Kiosk
  254. ----- HyperTalk script -----
  255. on mouseUp
  256.   set cursor to busy
  257.   push card
  258.   visual effect dissolve
  259.   go to cd "Matrix"
  260. end mouseUp
  261.  
  262. on mouseEnter
  263.   changeCurs 6069
  264.   put "Matrix Button" & return & "use matrix navigation" into fld "Tell"
  265. end mouseEnter
  266.  
  267. On mouseDown
  268.   global ButtonSND
  269.   play ButtonSND
  270. End mouseDown
  271.  
  272. on mouseLeave
  273.   put empty into fld "Tell"
  274.   changeCurs 69
  275. end mouseLeave
  276.  
  277.  
  278.  
  279. -- part 27 (button)
  280. -- low flags: 00
  281. -- high flags: 2002
  282. -- rect: left=385 top=303 right=342 bottom=428
  283. -- title width / last selected line: 0
  284. -- icon id / first selected line: 18849 / 18849
  285. -- text alignment: 1
  286. -- font id: 0
  287. -- text size: 12
  288. -- style flags: 0
  289. -- line height: 16
  290. -- part name: Lobby
  291. ----- HyperTalk script -----
  292. on mouseUp
  293.   set cursor to busy
  294.   set lockscreen to true
  295.   unlock screen with dissolve
  296.   go to cd "Lobby"
  297. end mouseUp
  298.  
  299. on mouseEnter
  300.   changeCurs 6069
  301.   put "Lobby Button" & return & "use building navigation" into fld "Tell"
  302. end mouseEnter
  303.  
  304. On mouseDown
  305.   global ButtonSND
  306.   play ButtonSND
  307. End mouseDown
  308.  
  309. on mouseLeave
  310.   put empty into fld "Tell"
  311.   changeCurs 69
  312. end mouseLeave
  313.  
  314.  
  315. -- part 28 (button)
  316. -- low flags: 00
  317. -- high flags: 2002
  318. -- rect: left=42 top=303 right=342 bottom=85
  319. -- title width / last selected line: 0
  320. -- icon id / first selected line: 21375 / 21375
  321. -- text alignment: 1
  322. -- font id: 0
  323. -- text size: 12
  324. -- style flags: 0
  325. -- line height: 16
  326. -- part name: Orientation briefing
  327. ----- HyperTalk script -----
  328. on mouseEnter
  329.   changeCurs 6069
  330.   put "Orientation Briefing Button" & return & "click to go to briefing room" into fld "Tell"
  331. end mouseEnter
  332.  
  333. on mouseUp
  334.   set lockscreen to true
  335.   set cursor to busy
  336.   push card
  337.   go to cd "Briefing Room"
  338.   unlock screen with dissolve
  339.   pass mouseUp
  340. end mouseUp
  341.  
  342. On mouseDown
  343.   global ButtonSND
  344.   play ButtonSND
  345. End mouseDown
  346.  
  347. on mouseLeave
  348.   put empty into fld "Tell"
  349.   changeCurs 69
  350. end mouseLeave
  351.  
  352.  
  353. -- part 29 (button)
  354. -- low flags: 00
  355. -- high flags: 2002
  356. -- rect: left=84 top=303 right=342 bottom=127
  357. -- title width / last selected line: 0
  358. -- icon id / first selected line: 20358 / 20358
  359. -- text alignment: 1
  360. -- font id: 0
  361. -- text size: 12
  362. -- style flags: 0
  363. -- line height: 16
  364. -- part name: Glossary
  365. ----- HyperTalk script -----
  366. on mouseUp
  367.   set cursor to busy
  368.   get short name of this card
  369.   if it is "Outliner" then clearF
  370.   push card
  371.   visual effect iris open
  372.   go cd "glossary"
  373. end mouseUp
  374.  
  375. on mouseEnter
  376.   put "Glossary Button" & return & "click to go to the Glossary" into fld "Tell"
  377.   changeCurs 6069
  378. end mouseEnter
  379.  
  380. On mouseDown
  381.   global ButtonSND
  382.   play ButtonSND
  383. End mouseDown
  384.  
  385. on mouseleave
  386.   put empty into fld "Tell"
  387.   changeCurs 69
  388. end mouseLeave
  389.  
  390.